package com.cxd.springcloud.feign;

import com.cxd.springcloud.entities.Payment;
import com.cxd.springcloud.vo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "alibabacloud-nacos-provider",fallback = PaymentFeignFallback.class)
public interface PaymentFeign {

    @GetMapping("/paymentSql/{id}")
    CommonResult<Payment> fallback(@PathVariable("id") Long id);
}
